package com.app.miwawa.api.eam.entity.view;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Transient;

import org.framework.common.api.entity.CommonEntityUUID;

import com.app.miwawa.api.esm.entity.contract.Contract;
import com.app.miwawa.api.esm.entity.contract.Stopinfo;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 学员信息视图
 * <p>描述: 教务管理</p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date 2016年2月10日 下午12:49:50
 * @version 1.0.2016
 */
@Entity @Table(name = "vb_student")
public class StudentView extends CommonEntityUUID {

	/** serialVersionUID(long):. */
	private static final long serialVersionUID = 5226807084324879830L;
	
	// student
	private String name;
	private String moonage;
	
	@Temporal(TemporalType.DATE)
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	private Date birthday;
	
	// parent
	private String parent;
	private String mobile;
	private String relation;
	private String parentid;
	
	// buyinfo
	private String totals;
	private String used;
	private String surplus;
	private String usedAmount;
	private String surplusAmount;
	
	private String item;
	private String type;
	
	@Temporal(TemporalType.DATE)
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	private Date fromDate;
	
	@Temporal(TemporalType.DATE)
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	private Date overDate;
	
	// classes
	private String classes;
	
	@Transient
	private String sex;
	@Transient
	private Date stopFrom;
	
	@Transient
	private Date stopOver;
	@Transient
	private String stopReason;
	
	// check & leave
	@Temporal(TemporalType.DATE)
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	private Date checkDate;
	
	@Temporal(TemporalType.TIME)
	@JsonFormat(pattern="HH:mm", timezone="GMT+8")
	private Date checkTime;
	private String checkState;
	
	@Temporal(TemporalType.DATE)
	@JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
	private Date leaveDate;

	private String customerId;
	private String contractId;
	
	// adviser
	@Transient
	private String userid;
	@Transient
	private String username;
	@Transient
	private String relationId;
	private String classesId;
	private String studentId;
	@Transient
	private String stopId;
	@Transient
	private Contract contract;
	@Transient
	private Stopinfo stopinfo;

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getMoonage() {
		return moonage;
	}

	public void setMoonage(String moonage) {
		this.moonage = moonage;
	}

	public Date getBirthday() {
		return birthday;
	}

	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}

	public String getParent() {
		return parent;
	}

	public void setParent(String parent) {
		this.parent = parent;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getRelation() {
		return relation;
	}

	public void setRelation(String relation) {
		this.relation = relation;
	}

	public String getParentid() {
		return parentid;
	}

	public void setParentid(String parentid) {
		this.parentid = parentid;
	}

	public String getTotals() {
		return totals;
	}

	public void setTotals(String totals) {
		this.totals = totals;
	}

	public String getUsed() {
		return used;
	}

	public void setUsed(String used) {
		this.used = used;
	}

	public String getSurplus() {
		return surplus;
	}

	public void setSurplus(String surplus) {
		this.surplus = surplus;
	}

	public String getUsedAmount() {
		return usedAmount;
	}

	public void setUsedAmount(String usedAmount) {
		this.usedAmount = usedAmount;
	}

	public String getSurplusAmount() {
		return surplusAmount;
	}

	public void setSurplusAmount(String surplusAmount) {
		this.surplusAmount = surplusAmount;
	}

	public String getItem() {
		return item;
	}

	public void setItem(String item) {
		this.item = item;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public Date getFromDate() {
		return fromDate;
	}

	public void setFromDate(Date fromDate) {
		this.fromDate = fromDate;
	}

	public Date getOverDate() {
		return overDate;
	}

	public void setOverDate(Date overDate) {
		this.overDate = overDate;
	}

	public String getClasses() {
		return classes;
	}

	public void setClasses(String classes) {
		this.classes = classes;
	}

	public Date getStopFrom() {
		return stopFrom;
	}

	public void setStopFrom(Date stopFrom) {
		this.stopFrom = stopFrom;
	}

	public Date getStopOver() {
		return stopOver;
	}

	public void setStopOver(Date stopOver) {
		this.stopOver = stopOver;
	}

	public String getStopReason() {
		return stopReason;
	}

	public void setStopReason(String stopReason) {
		this.stopReason = stopReason;
	}

	public Date getCheckDate() {
		return checkDate;
	}

	public void setCheckDate(Date checkDate) {
		this.checkDate = checkDate;
	}

	public Date getCheckTime() {
		return checkTime;
	}

	public void setCheckTime(Date checkTime) {
		this.checkTime = checkTime;
	}

	public String getCheckState() {
		return checkState;
	}

	public void setCheckState(String checkState) {
		this.checkState = checkState;
	}

	public Date getLeaveDate() {
		return leaveDate;
	}

	public void setLeaveDate(Date leaveDate) {
		this.leaveDate = leaveDate;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getCustomerId() {
		return customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}

	public String getContractId() {
		return contractId;
	}

	public void setContractId(String contractId) {
		this.contractId = contractId;
	}

	public String getRelationId() {
		return relationId;
	}

	public void setRelationId(String relationId) {
		this.relationId = relationId;
	}

	public String getClassesId() {
		return classesId;
	}

	public void setClassesId(String classesId) {
		this.classesId = classesId;
	}

	public String getStudentId() {
		return studentId;
	}

	public void setStudentId(String studentId) {
		this.studentId = studentId;
	}

	public String getStopId() {
		return stopId;
	}

	public void setStopId(String stopId) {
		this.stopId = stopId;
	}

	public Contract getContract() {
		return contract;
	}

	public void setContract(Contract contract) {
		this.contract = contract;
	}

	public Stopinfo getStopinfo() {
		return stopinfo;
	}

	public void setStopinfo(Stopinfo stopinfo) {
		this.stopinfo = stopinfo;
	}

}
